package cn.easybuy.service.user;

import java.util.List;

import cn.easybuy.dao.User_AddressDao;
import cn.easybuy.dao.impl.User_AddressDaoImpl;
import cn.easybuy.entity.User_Address;
import cn.easybuy.utils.DataSourceUtil;

public class UserAddressServiceImpl implements UserAddressService {

	@Override
	public List<User_Address> userAddress(String id) {
		User_AddressDao ua = new User_AddressDaoImpl(DataSourceUtil.getConnection());
		return ua.userAddress(id);
	}

	@Override
	public int addAddress(String id, String address, String remark) {
		User_AddressDao ua = new User_AddressDaoImpl(DataSourceUtil.getConnection());
		return ua.addAddress(id, address, remark);
	}

}
